package ig.metrica.ejb.dao;//import com.microsoft.sqlserver.jdbc.*;import ig.util.ejb.IGBean;import java.sql.Connection;import java.sql.SQLException;import javax.naming.Context;import javax.naming.InitialContext;import javax.naming.NamingException;import javax.sql.DataSource;//import net.sourceforge.jtds.jdbcx.JtdsDataSource;public class conexion{    public conexion()    {    }    public Connection getMyConexion(String datasource,String quien) throws SQLException{        try {            return new IGBean().getConexion(datasource);        } catch (Exception e) {            throw new SQLException(e);        }        /*try        {            Context ctx = new InitialContext();            DataSource ds = (DataSource)ctx.lookup("java:/" + datasource);            return ds.getConnection();        }        catch(Exception e){            System.out.println("Ha ocurrido un Error tratando de Obtener una Conexion\n" + e);        }        return null;*/    }}